package com.sharefang.aproject.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.webkit.WebView;

import com.sharefang.aproject.R;
import com.sharefang.aproject.bean.NppBean;

/**
 * Created by Administrator on 2016/8/22.
 */

public class NppPlayActivity extends BaseActivity {
    WebView wv_play;
    NppBean nppBean;

    @Override
    void findView() {
        wv_play = (WebView) findViewById(R.id.wv_play);

    }

    @Override
    void initView() {
        setCenterTitle("播放");

        wv_play.getSettings().setJavaScriptEnabled(true);
    }

    @Override
    void setLayout() {
        setContentView(R.layout.activity_npp_play);
    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        Intent intent = getIntent();
        nppBean = intent.getParcelableExtra("nppBean");
        wv_play.loadUrl("http:"+nppBean.getHtmlUrl());
    }
}
